home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15180 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.london.sinet.slb.com!news
  2. From: Laurent Darton <darton@macon.wm.slb.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Link pb with visual and Flex
  5. Date: Wed, 17 Apr 1996 19:26:25 -0700
  6. Organization: Schlumberger SINet, London, England
  7. Message-ID: <3175A851.B17@macon.wm.slb.com>
  8. NNTP-Posting-Host: macon14.macon.wm.slb.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win16; I)
  13.  
  14. Hi,
  15. I've made a scanner with flex (in C), and I'd like to integrate this 
  16. function inside a C++ Dos program.
  17. Then for example I have  main.cpp and lexyy.c. I want to use the function 
  18. int analyse(void) defined in lexyy.c
  19. there are no errors during compiling, but at the link, the function is 
  20. declared as unresolved external.. I suppose the problem can be solve with 
  21.  a link option but I don't know..
  22. remark : when I use the browser, and when I 'm looking for the definition 
  23. of analyse function, here is what I have :
  24. analyse(function) here is my definition ... well
  25. AND
  26. analyse()     With ref ok but no for definition..
  27. Why 2 functions are declared?? and no only one..
  28. I sppose it's a problem netween C and C++ but I'm a bit lost..
  29. anybody can help me?
  30. thanks in advance
  31.